package com.pug.middle.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

/**
 * @author 飞哥
 * @Title: 学相伴出品
 * @Description: 飞哥B站地址：https://space.bilibili.com/490711252
 * 记得关注和三连哦！
 * @Description: 我们有一个学习网站：https://www.kuangstudy.com
 * @date 2022/4/9$ 21:36$
 */
@RestController
public class UserRegController {

    @Autowired
    private MessageService messageService;
    @Autowired
    private RegService regService;


    @PostMapping("/reg/user")
    public String reguser() {
        new Thread(messageService).start();
        new Thread(regService).start();
        return "success";
    }
}
